package com.diors.game.engine.network;

import java.util.concurrent.atomic.AtomicInteger;

import com.diors.commons.network.AbstractConnection;

/**
 * 游戏玩家的网络连接
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-21
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public class GameClient extends AbstractConnection
{
	
	private final static AtomicInteger increment = new AtomicInteger(1); 
	
	/* 游戏中生成的连接ID */
	private int connID;

	public GameClient ()
	{
		connID = increment.getAndIncrement();
	}
	
	public int getCommID()
	{
		return connID;
	}
	
}
